<?php
class Users_model extends General_db_model
{
	private $tbl_users = 'tbl_admin_login_info';
	
    function total_users()
	{
		$this->db->where('group', 'admin');
		$this->db->from($this->tbl_users);		
		return $this->db->count_all_results();
	}

	function get_users($limit=NULL, $start=NULL)
	{
		$this->db->select('*');
		$this->db->where('group', 'admin');
		$query = $this->db->get($this->tbl_users, $limit, $start);
		return $query->result();
	}
}
?>